package com.ruoyi.health.report.domain;


import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 健康指标详细数据表对象 health_metric_detail
 *
 * @author lgq
 * @date 2025-9-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class HealthMetricDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 详情ID */
    private Long id;

    /** 数据ID */
    private Long dataId;

    /** 标签 */
    private byte[] detail;

    private String detailStr;

    public String getDetailStr() {
        if(detail!=null && detail.length>0){
            return new String(detail);
        }
        return detailStr;
    }


}
